-
Notifications
You must be signed in to change notification settings - Fork 41
WSC hydrograph #105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
WSC hydrograph #105
Conversation
|
Hi Kevin, could you please let me know when you'd like this reviewed by so I can add it to my to-do list accordingly? Have a quickly building pile as the semester ramps up. |
|
It's not time critical. I just need someone (preferably 2 people) to check it over. It can wait until then. |
|
Looking over the ch_gg_hydrograph function one thing that jumped out to me is that we may want to expand the handling of the annual instantaneous peak common dates. Presently, it sets the common dates to the specific date range. Would it be more useful to show the annual instantaneous peaks per common years? For example, if you compare these two calls: and
you can see that all three stations have annual instantaneous peaks available for 2020 through 2023. However, when plotting only instantaneous peaks, the common date handling only retains the last value from the earliest common year and the first value from the last common year. If you think it makes more sense to plot all values within common years when only instantaneously peaks are plotted, we could pretty easily parse out the common years and set the min_date and max_date. Maybe something like this? if (common_dates) { } else { } One other thought was to have the instantaneous peaks plotted with a different colour other than black when both daily values and instantaneous values are plotted. That might help them show up a little better if plotting a long time series. On a separate note, is there a better way for me to annotate suggested code changes? Notes directly on the 'Files Changed' tab? Or editing the function .R file and attaching it to this comment? |
- fixed vignette - added colours to gg_hydrographs - gg_hydrographs now uses common years for instantaneous peaks
|
I fixed an embarrassing number of documentation errors, and updated the vignette to use the new |
Revised hydographs
Description
Added a new function
ch_gg_hydrographswhich obtains WSC daily and/or peak flows fromtidyhydatand plots flows for one or many stations. The resulting plots can be facettted.Related Issue
Renamed function
ch_hydrograph_plottoch_model_hydrograph, as that is what it is really intended for., and "plot" is redundant.Example